package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Table(name="t_category_menu")
public class TCategoryMenu {

  @Id
  private String uid;//唯一uid
  private String name;//菜单名称
  @Column(name = "menu_level")
  private Integer menuLevel;//菜单级别
  private String summary;//简介
  @Column(name = "parent_uid")
  private String parentUid;//父uid
  private String url;//url地址
  @Column(name = "icon")
  private String icon;//图标
  private Integer sort;//排序字段，越大越靠前
  private Integer status;//状态
  @Column(name = "create_time")
  private Timestamp createTime;//创建时间
  @Column(name = "update_time")
  private Timestamp updateTime;//更新时间
  @Column(name = "is_show")
  private Integer isShow;//是否显示 1:是 0:否
  @Column(name = "menu_type")
  private Integer menuType;//菜单类型 0: 菜单   1: 按钮

  public TCategoryMenu() {
  }

  public TCategoryMenu(String uid, String name, Integer menuLevel, String summary, String parentUid, String url, String icon, Integer sort, Integer status, Timestamp createTime, Timestamp updateTime, Integer isShow, Integer menuType) {
    this.uid = uid;
    this.name = name;
    this.menuLevel = menuLevel;
    this.summary = summary;
    this.parentUid = parentUid;
    this.url = url;
    this.icon = icon;
    this.sort = sort;
    this.status = status;
    this.createTime = createTime;
    this.updateTime = updateTime;
    this.isShow = isShow;
    this.menuType = menuType;
  }

  public String getUid() {
    return uid;
  }

  public void setUid(String uid) {
    this.uid = uid;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getMenuLevel() {
    return menuLevel;
  }

  public void setMenuLevel(Integer menuLevel) {
    this.menuLevel = menuLevel;
  }

  public String getSummary() {
    return summary;
  }

  public void setSummary(String summary) {
    this.summary = summary;
  }

  public String getParentUid() {
    return parentUid;
  }

  public void setParentUid(String parentUid) {
    this.parentUid = parentUid;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Timestamp getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Timestamp createTime) {
    this.createTime = createTime;
  }

  public Timestamp getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Timestamp updateTime) {
    this.updateTime = updateTime;
  }

  public Integer getIsShow() {
    return isShow;
  }

  public void setIsShow(Integer isShow) {
    this.isShow = isShow;
  }

  public Integer getMenuType() {
    return menuType;
  }

  public void setMenuType(Integer menuType) {
    this.menuType = menuType;
  }
}
